#include "s3c2440_soc.h"
#include "uart.h"

void delay(volatile int ms)
{
	while(ms--);
}

char global_char = 'A';
char global_char3 = 'a';
const char g_Char2 = 'B';           // .rodata:
int g_A = 0;                        // .bss
int g_B;                            // .bss

int main(void)
{
    unsigned char c;

    uart0_init();

    puts("hello world\n\r");

    while (1)
    {
        
        putchar(global_char);
        global_char++;              //nand启动时 打印ABCDEFG.... Nor启动时打印AAAAA
                                    //编译器必须选择arm-linux-gcc 3.4.5
        putchar(global_char3);
        global_char3++; 

        delay(100000);
    }
    

    return 0;
}


